{
    const TEMPLATE = {
        'input' : {
            'text' : `
            <div class="form-group">
                <label>Text Input:</label>
                <input type="text" class="form-control">
            </div>`
        },
        'checkbox' : `
            <div class="form-group">
                <label>多选按钮组: </label>
                <div class="group-box">     
                    <div class="checkbox">
                      <label>
                        <input type="checkbox" value=""> Checkbox
                      </label>
                    </div>
                    <div class="checkbox">
                      <label>
                        <input type="checkbox" value=""> Checkbox
                      </label>
                    </div>
                    <div class="checkbox">
                      <label>
                        <input type="checkbox" value=""> Checkbox
                      </label>
                    </div>
                </div>
            </div>

        `,
        'radio' : `
            <div class="form-group">
                <label>单选按钮组: </label>
                <div class="group-box">     
                    <div class="radio">
                        <label>
                            <input type="radio"> Radio
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio"> Radio
                        </label>
                    </div>
                    <div class="radio">
                        <label>
                            <input type="radio"> Radio
                        </label>
                    </div>
                </div>
            </div>
        `,
        'select' : `
            <div class="form-group">
                <label>Select:</label>
                <select class="form-control">
                     <option>1</option>
                     <option>2</option>
                     <option>3</option>
                     <option>4</option>
                     <option>5</option>
                </select>
            </div>
        `,
        'textarea' : `
            <div class="form-group">
                <label>Textarea:</label>
                <textarea class="form-control" rows="3"></textarea>
            </div>
        `,
        'button' : {
            'submit' : `
                <button type="submit" class="btn btn-default">Submit</button>
            `,
            'button' : `
                <input class="btn btn-default" type="button" value="Input">
            `
        }
    }

    if ( !window.TEMPLATE ) window.TEMPLATE = TEMPLATE;
}